package midway.madness.post.video;

import midway.madness.post.PostObject;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;

public class VideoObject extends PostObject{
	
	public VideoObject(Context pContext, int pId, String pAuthor, String pTitle, String pContent, String pDate, String pSlug, String[] pComments){
		super(pContext, pId, pAuthor, pTitle, pContent, pDate, pSlug, pComments);
	}

	@Override
	public void goForIntent() {
		Intent intent = new Intent(Intent.ACTION_VIEW);
		intent.setDataAndType(Uri.parse(getContent()), "video/*");
		intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
		getContext().startActivity(intent);
	}

}
